package func.study.groovy.call

/**
 * Created by yao_pc on 2017/8/4.
 */
class AGroovyClass {

    def useClosure(closure) {
        println "call closure"
        closure()
    }

    def passToClosure(int value, closure) {
        println "value=$value to closure"
        closure(value)
    }

}
